<template>
  <div class="home">
    <c-button @click="handleClick">点击</c-button>
  </div>
</template>

<script>
export default {
  name: "HomeView",
  components: {},
  methods: {
    handleClick() {
      return new Promise((resolve) => {
        setTimeout(() => {
          resolve("成功");
        }, 2000);
      });
    },
  },
};
</script>
